<?php   
		require_once('../core/core.php');
		require_once "../db/mysql/tbr.php";
		require_once "../classes/forms.cls.php";
		require_once "../conf/config.php";
		require_once('../'.$LANG_FILE);
		/****  CONNECTION TO RDBMS SERVER ****/	
		require_once "../db/mysql/tbr.ini.php";
	
		$formTable = array("svq_forms"); 
		$form = new svq_form();
		$base = new base();
		$clearRequest = $form->clearRquest($_REQUEST);
		$ids          = $form->getIdsIdx($clearRequest);
		$maxId        = $form->getMaxIdFromForm($ids);
		$minId        = $form->getMinIdFromForm($ids);
		$fsid         = $_REQUEST['fsid'];
		$formDataTable= 'svq_formdata';
        
		echo $res = $form->treatGeneratedForm($base,$fsid,$formDataTable,$_REQUEST).'-#-'.$fsid ;
?>